<?php get_component('bottomArticlesWidget', 'render') ?>

<?php slot('searchResults')?>
<div class="maincontent">
	<div class="contentbox">
		<div class="contentboxin">
			<div class="boxintopleft">
				<?php include_component('headerMenu', 'breadCrumbs')?>
			</div>
			<div class="boxintopright">
				<?php include_partial('article/share') ?>
			</div>
			<div class="clear"></div>
			<div class="boxinpealkiri">
				<h1><?php echo __('Otsingu tulemused') ?>: "<?php echo $keyword ?>"</h1>
			</div>
			<div class="newsbox">

				<div class="newsblock">
					<h3><?php echo __('Tooted') ?>:</h3>
				</div>
				<?php if(count($products) > 0): ?>
				<?php foreach($products as $product): ?>
				<div class="newsblock">
					<h4><a href="<?php include_component('linker', 'product', array('product' => $product) ) ?>"><?php echo $product['name'] ?></a></h4>
					<p><?php echo strip_tags($product['description']) ?></p>
				</div>
				<?php endforeach; ?>
				<?php else: ?>
					<?php echo __('Tooteid ei leitud') ?>
				<?php endif; ?>
				<div class="partnews">
					<img height="10" width="574" alt="" src="/olly/img/gallshadowbottom.jpg">
				</div>

				<div class="newsblock newsbottom">
					<h3><?php echo __('Artiklid ja uudised') ?>:</h3>
				</div>
				<?php if(count($news) > 0 || count($nodes) > 0): ?>
					<?php foreach($news as $newItem): ?>
					<div class="newsblock newsbottom">
						<h5><a href="<?php include_component('linker', 'newsItem', array('newsItem' => $newItem))?>"><?php echo $newItem['name'] ?></a></h5>
						<p><?php echo $newItem['description'] ?></p>
					</div>
					<?php endforeach; ?>
					<?php foreach($nodes as $node): ?>
					<div class="newsblock newsbottom">
						<h5><a href="<?php include_component('linker', 'articleLinkBuilder', array('node' => $node))?>"><?php echo $node['title'] ?></a></h5>
						<p><?php echo $node['description'] ?></p>
					</div>
					<?php endforeach; ?>
				<?php else: ?>
					<?php echo __('artikle / uudiseid ei leitud') ?>
				<?php endif; ?>
			</div>
			<div class="clear"></div>
		</div>
	</div>
	</div>
<?php end_slot()?>